<%@ include file="/taglibs.jsp"%>

<head>
    <title><fmt:message key="contentList.title"/></title>
    <meta name="heading" content="<fmt:message key='contentList.heading'/>"/>
    <meta name="menu" content="ContentMenu"/>
</head>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/editContent"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<display:table name="contents" class="table" requestURI="" id="contentList" export="true" pagesize="25">
    <display:column property="id" sortable="true" href="editContent" media="html"
        paramId="id" paramProperty="id" titleKey="content.id"/>
    <display:column property="id" media="csv excel xml pdf" titleKey="content.id"/>
    <display:column property="title" sortable="true" titleKey="content.title"/>
    <display:column property="category.id" sortable="true" titleKey="content.category.id"/>
    <display:column property="author" sortable="true" titleKey="content.author"/>
    <display:column property="authorEmail" sortable="true" titleKey="content.authorEmail"/>
    <display:column property="tags" sortable="true" titleKey="content.tags"/>
    <display:column property="shortDescription" sortable="true" titleKey="content.shortDescription"/>
    <display:column property="extUrl" sortable="true" titleKey="content.extUrl"/>
    <display:column property="media" sortable="true" titleKey="content.media"/>
    <display:column property="fullContent" sortable="true" titleKey="content.fullContent"/>
    <display:column property="publishDate" sortable="true" titleKey="content.publishDate"/>
    <display:column property="valideFrom" sortable="true" titleKey="content.valideFrom"/>
    <display:column property="valideTo" sortable="true" titleKey="content.valideTo"/>
    


    <display:setProperty name="paging.banner.item_name"><fmt:message key="contentList.content"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="contentList.contents"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="contentList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="contentList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="contentList.title"/>.pdf</display:setProperty>
</display:table>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/editContent"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<script type="text/javascript">
    highlightTableRows("contentList");
</script>